package ooday02;

public class ExtendsTest {
    public static void main(String[] args) {
        Student zs = new Student("李延",24,"黑龙江","jsd2302","006");
        zs.name = "李延";
        zs.age = 24;
        zs.address = "黑龙江";
        zs.className = "jsd2302";
        zs.studId = "006";
        zs.eat();
        zs.sleep();
        zs.sayHi();
        zs.study();

        Teacher ls = new Teacher("李四",39,"北京",15000);
        ls.name ="李四";
        ls.age = 39;
        ls.address = "北京";
        ls.salary = 15000;
        ls.eat();
        ls.sleep();
        ls.sayHi();
        ls.teach();

        Doctor ww = new Doctor("王五",35,"广州","主治医师");
        ww.name = "王五";
        ww.age = 35;
        ww.address = "广州";
        ww.title = "主治医师";
        ww.eat();
        ww.sleep();
        ww.sayHi();
        ww.cut();
    }
}
